package cn.gcBlock;

import cn.gcBlock.utils.SpringContextUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Zheng Jie
 * @date 2018/11/15 9:20:19
 */
@EnableAsync
@SpringBootApplication
@EnableTransactionManagement
@EnableFeignClients
public class BlockChainApp implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(BlockChainApp.class, args);
    }
    @Bean
    public SpringContextUtils springContextHolder() {
        return new SpringContextUtils();
    }
}
